package io.renren.modules.msg_info.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.msg_info.dao.V9MsgInfoDao;
import io.renren.modules.msg_info.entity.V9MsgInfoEntity;
import io.renren.modules.msg_info.service.V9MsgInfoService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("v9MsgInfoService")
public class V9MsgInfoServiceImpl extends ServiceImpl<V9MsgInfoDao, V9MsgInfoEntity> implements V9MsgInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<V9MsgInfoEntity> page = this.page(
                new Query<V9MsgInfoEntity>().getPage(params),
                new QueryWrapper<V9MsgInfoEntity>()
        );

        return new PageUtils(page);
    }
}
